{template 'header-show', 'sell'}
<center> 
    <div class="inBg">
		<div class="mod-detail-crumb" id="mod-detail-crumb">
	<ul class="de-crumbs clr">
		<li><a class="dmtrack" href="{DT_PATH}">首页</a></li><li class="de-st">&gt;</li>
		<li><a class="dmtrack" href="{$MOD[linkurl]}">{$MOD[name]}</a></li><li class="de-st">&gt;</li>
		<li class="de-st">{cat_pos($catid, ' &gt; ')}</li><li><a href="{DT_PATH}feed/rss.php?mid=6&catid={$catid}" target="_blank" class="de-bookcrumb" title="订阅当前分类信息">订阅</a></li>
	</ul>
	<p class="de-remind">快捷方式：<a target="_blank" href="{$MODULE[2][linkurl]}{$DT[file_my]}?mid={$moduleid}&action=add&catid={$catid}">发布信息</a>
	<span class="de-spacer">|</span> 
    <a href="{$MODULE[2][linkurl]}favorite.php?action=add&title={urlencode($member[company])}&url={urlencode($member[linkurl])}">收藏公司</a>
    </p>
</div>

        <div id="content1" class="bodyLeft filter"> 
    <div class="inte-module ">
    
    
    
    
{if $user_status == 3}
{if $member}
        <div class="m-t float-clr">
            <span class="cxt-kind">
			 <a href="{$MODULE[2][linkurl]}grade.php" class="draft_no_link">{if $groupid == 7}<img id="tpLogo" src="{DT_SKIN}images/sell/a_xl_qy.gif"/>{elseif $groupid == 6}<img id="tpLogo" src="{DT_SKIN}images/sell/a_xl_gr.gif"/>{elseif $groupid == 5}<img id="tpLogo" src="{DT_SKIN}images/sell/a_pj_gr.gif"/>{/if}</a>
			</span> 
			<span class="time-point-{vip_year($member[fromtime])}"></span> 
        </div>
{else}
      <div class="m-t float-clr"><h2 class="title">供应商信息</h2></div>
{/if}
{elseif $user_status == 2}
      <div class="m-t float-clr"><h2 class="title">查看该信息联系方式需支付</h2></div>


{elseif $user_status == 1}
      <div class="m-t float-clr"><h2 class="title">您的会员级别权限不足！</h2></div>



{elseif $user_status == 0}
      <div class="m-t float-clr"><h2 class="title">请登录后查看联系方式</h2></div>
{/if}
		        <div class="m-c">
{if $user_status == 3}
{if $member}
			            <ul class="namewrap">
			               	<li><a href="{$member[linkurl]}" target="_blank" title="{$member[company]}&#10;{$member[mode]}" class="blue f14x">{$member[company]}</a></li>
			               	<li><a class="blue">{$member[truename]}</a>({gender($member[gender])})&nbsp;
			               	{if $member[qq] && $DT[im_qq]}{im_qq($member[qq])}&nbsp;{/if}
			               	{if $member[ali] && $DT[im_ali]}{im_ali($member[ali])}&nbsp;{/if}
			               	{if $member[msn] && $DT[im_msn]}{im_msn($member[msn])}&nbsp;{/if}
			               	{if $member[skype] && $DT[im_skype]}{im_skype($member[skype])}&nbsp;{/if}
                            </li>
                            <li><a href="{$MODULE[2][linkurl]}friend.php?action=add&username={$member[username]}">[加为商友]</a> <a href="{$MODULE[2][linkurl]}message.php?action=send&touser={$member[username]}">[发送站内信件]</a> 
                            </li>
			            </ul>
			            <ul class="certifywrap">
			               	<li>{VIP}指数:&nbsp;&nbsp;&nbsp;&nbsp;<a class="blue draft_no_link" href='{$MODULE[2][linkurl]}grade.php' target="_blank">{$member[vip]} [第{vip_year($member[fromtime])}年] </a></li>
			               	<li>认证信息:
	{if $member[vcompany]}&nbsp;<img src="{$MODULE[2][linkurl]}image/v_company.gif" width="16" height="16" align="absmiddle" title="通过工商认证"/>{/if}
	{if $member[vtruename]}&nbsp;<img src="{$MODULE[2][linkurl]}image/v_truename.gif" width="16" height="16" align="absmiddle" title="通过实名认证"/>{/if}
	{if $member[vbank]}&nbsp;<img src="{$MODULE[2][linkurl]}image/v_bank.gif" width="16" height="16" align="absmiddle" title="通过银行帐号认证"/>{/if}
	{if $member[vmobile]}&nbsp;<img src="{$MODULE[2][linkurl]}image/v_mobile.gif" width="16" height="16" align="absmiddle" title="通过手机认证"/>{/if}
	{if $member[vemail]}&nbsp;<img src="{$MODULE[2][linkurl]}image/v_email.gif" width="16" height="16" align="absmiddle" title="通过邮件认证"/>{/if}
                            </li>
	{if $member[validated]}<li><a class="blue draft_no_link" href='#'>{if $member[validated]}&nbsp;<img src="{DT_SKIN}image/check_right.gif" align="absmiddle"/> 企业资料通过{$member[validator]}认证{/if}</a></li>{/if}
			            </ul>
			            <ul class="featurewrap"><li>所在地区：{area_pos($member[areaid], '-')}</li></ul>
                        
			            <div class="pagecollectwrap float-clr">
                           <a class="pagecollect draft_no_link" href="{$MODULE[2][linkurl]}favorite.php?action=add&title={urlencode($member[company])}&url={urlencode($member[linkurl])}" target="_blank"><img src="{DT_SKIN}images/sell/pagecollect.gif" alt="收藏本公司" /></a>
                           <span class="hotextence">人气：<span id="hits">{$hits}</span></span>
			            </div>                        
{else}
			            <ul class="namewrap">
			               	<li><a href="{userurl('')}" target="_blank" title="{$member[company]}&#10;{$member[mode]}" class="blue f14x">{$item[company]}</a></li>
			               	<li><a class="blue">{$item[truename]}</a> <strong class="f_red"> ( 未注册 )</strong>&nbsp;
	{if $item[qq] && $DT[im_qq]}{im_qq($item[qq])}&nbsp;{/if}
	{if $item[ali] && $DT[im_ali]}{im_ali($item[ali])}&nbsp;{/if}
	{if $item[msn] && $DT[im_msn]}{im_msn($item[msn])}&nbsp;{/if}
	{if $item[skype] && $DT[im_skype]}{im_skype($item[skype])}&nbsp;{/if}
                            </li>
			            </ul>

			            <ul class="featurewrap"><li>所在地区：{area_pos($item[areaid], '&nbsp;')}</li></ul>
			            <div class="pagecollectwrap float-clr"><span class="hotextence">人气：<span id="hits">{$hits}</span></span></div>
{/if}


{elseif $user_status == 2}
			            <ul class="namewrap">
			               	<li>查看该信息联系方式需支付{$name} <strong class="f_red">{$fee}</strong> {$unit}</li>
			               	<li>我的{$name}余额 <strong class="f_blue">{if $currency=='money'}{$_money}{else}{$_credit}{/if}</strong> {$unit}</li>
			               	<li>请点击支付按钮支付后查看</li>
			               	{if $MOD[fee_period]}<li>支付后可查看<strong class="f_red">{$MOD[fee_period]}</strong>分钟，过期重新计费</li>{/if}
			               	<li><a href="{$pay_url}"><img src="{DT_SKIN}image/btn_pay.gif" width="100" height="30" alt="立即支付"/></a></li>
			               	<li><a href="{$MODULE[2][linkurl]}{if $currency=='money'}charge.php?action=pay{else}credits.php?action=buy{/if}"><img src="{DT_SKIN}image/btn_charge.gif" width="100" height="30" alt="帐户充值"/></a></li>

			            </ul>
{elseif $user_status == 1}
			            <ul class="namewrap">
			               	<li>获得更多商业机会，建议<span class="f_red">升级</span>会员级别</li>
			               	{if $DT[telephone]}<li>咨询电话：{$DT[telephone]}</li>{/if}
			               	<li><a href="{$MODULE[2][linkurl]}grade.php"><img src="{DT_SKIN}images/sell/btn_upgrade.gif" width="100" height="30" alt="现在升级"/></a></li>
			            </ul>

{elseif $user_status == 0}
<style>
.user_input  { height:22px; margin:4px 0; line-height:20px;}
.user_bt  {margin:4px 0;}

</style>

			            <ul class="namewrap">
	<form action="{$MODULE[2][linkurl]}{$DT[file_login]}" method="post" onsubmit="return user_login();">
	<input type="hidden" name="submit" value="1"/>
	<input name="username" id="user_name" type="text" value="会员名/Email" onfocus="if(this.value=='会员名/Email')this.value='';" class="user_input"/>&nbsp; 
	<input onclick="location.href='{$MODULE[2][linkurl]}{$DT[file_register]}'" src="{DT_SKIN}images/sell/user_bt.gif" type="image"class="user_bt"/>  
	<input name="password" id="user_pass" type="password" value="password" onfocus="if(this.value=='password')this.value='';" class="user_input" class="user_input"/>&nbsp; 
	<input type="image" src="{DT_SKIN}images/sell/user_login.gif" class="user_bt" align="absmiddle"/>
	</form>
			            </ul>



{/if}
        </div>
        <div class="m-btm"></div>
    </div>
		
	<div id="advertisement_side" class="bodyCont moveChild mainTextColor no-winport" style="margin-bottom:7px;">
       <div class="clr"></div>
       <div class="bodyContTitle"><span class="fl b titleLinkColor titleName">您可能感兴趣</span></div>
       <div class="bodyContContent">
       <ul>
          <!--{php $tags=tag("moduleid=$moduleid&condition=status=3&length=1&pagesize=8&order=rand() desc&template=null");}-->
            {loop $tags $i $t}
       <li> <div class="image"><a href="{$t[linkurl]}" class="draft_no_link" target="_blank"><img src="{imgurl($t[thumb], 1)}" width="64"></a></div> <div class="title"><a href="{$t[linkurl]}" class="topicLink draft_no_link" target="_blank">{$t[tag]}</a></div> <div class="price"><em>{if $t[unit] && $t[price]>0}￥ {$t[price]} {else} 面议 {/if}</em></div> </li>
            {/loop}
       </ul>
       </div>
    </div>
        </div> 
        
        <div id="content2" class="bodyRight filterDom"> 
<div id="J_DetailInside" class="detail-inside">
	<div class="mod-detail">
		<div class="mod-detail-hd"><h1>{$title}</h1></div>
		<div class="mod-detail-bd clearfix">
			<div class="d-summary clearfix">
								<div class="d-property">
					<div class="d-wrap">
<div class="mod-detail-price" id="mod-detail-price">
	<table>
		<thead class="de-price-hd">
			<tr>
				<th>产品/服务：</th>
				<th><strong>{$tag}</strong></th>
			</tr>
		</thead>
		<tbody>	  
        
        
        
        
				<tr>
				<td class=bot>需求数量：</td>
				<td class=bot>{$amount}</td>
				</tr>
				<tr>
				<td class=bot>价格要求：</td>
				<td class=bot>{$price}{if $username}&nbsp;<a href="{$MOD[linkurl]}{rewrite('price.php?itemid='.$itemid)}"><img src="{DT_SKIN}image/btn_price.gif" alt="报价" align="absmiddle"/></a>{/if}</td>
				</tr>
				<tr>
				<td class=bot>规格要求：</td>
				<td class=bot>{$standard}</td>
				</tr>
				<tr>
				<tr>
				<td class=bot>包装要求：</td>
				<td class=bot>{$pack}</td>
				</tr>
				<tr>
				<tr>
				<td class=bot>所在地：</td>
				<td class=bot>{area_pos($areaid, '&nbsp;')}</td>
				</tr>
				<tr>
				<td class=bot>有效期至：</td>
				<td class=bot>{if $todate}{$todate}{else}长期有效{/if}{if $expired} <span class="f_red">[已过期]</span>{/if}</td>
				</tr>
				<tr>
				<td class=bot>最后更新：</td>
				<td class=bot>{$editdate}</td>
				</tr>
				<tr>
				<td class=bot>浏览次数：</td>
				<td class=bot><span id="hits">{$hits}</span></td>
				</tr>
		</tbody>
	</table>
</div>

</div>
</div>
			<div class="d-gallery">
					<div class="mod-detail-picvessel">
	               	<div class="de-pic de-pic-main de-310pic">
				<div class="album">
					<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
					<td width="310" valign="top"><div><span id="abm" title="点击查看大图"><img src="{$albums[0]}" onload="if(this.width>240){this.width=240;}" onmouseover="SAlbum(this.src);" onmouseout="HAlbum();" onclick="PAlbum(this);" id="DIMG"/></span></div></td>
					</tr>
					<tr>
					<td>
					{loop $thumbs $k $v}<img src="{$v}" width="60" height="60" onmouseover="if(this.src.indexOf('nopic60.gif')==-1)Album({$k}, '{$albums[$k]}');"class="{if $k}ab_im{else}ab_on{/if}" id="t_{$k}"/>{/loop}</td>
					</tr>
					<tr align="center">
					<td height="30" onclick="PAlbum($('DIMG'));"><img src="{DT_SKIN}image/ico_zoom.gif" width="16" height="16" align="absmiddle"/> 点击图片查看原图</td>
					</tr>
					</table>
				</div>
	               	</div>
	               	<p class="de-favorite">
	               	<form method="post" action="{$MODULE[2][linkurl]}favorite.php">
	               	<input type="hidden" name="action" value="add"/>
	               	<input type="hidden" name="title" value="{$title}"/>
	               	<input type="hidden" name="url" value="{$linkurl}"/>
	               	<input type="image" src="{DT_SKIN}image/btn_fav.gif" class="c_p" style="margin-top:5px;"/>
	               	</form>
	               	</p>
	               	</div>
				</div>
			</div>
		<div class="mod-detail-otabs">
               <ul id="tabCot_product-li-currentBtn-">
                  <li class="currentBtn"><a href="javascript:void(0)" title="详细说明" rel="1" target="_self">详细说明</a></li>
                  <li><a href="javascript:void(0)" title="联系方式" rel="2" target="_self">联系方式</a></li>
               </ul>
		</div>
       <div class="mod-detail-description" id="tabCot_product_1">

		    <div class="de-description-detail fd-editor" id="content">{$content}</div>
             <p style="margin-top:10px;">{template 'comment_sell', 'chip'}</p>
</div>

       <div class="mod-detail-contact" id="tabCot_product_2" style="display:none">
           <div class="de-blockhd"><h2>联系方式</h2></div>
	        	<div class="de-blockbd clr">
	        	<div class="de-leftcon"  id="contact">
              {template 'contact_sell_show', 'chip'}
        </div>
    </div>
</div>
<script type="text/javascript" src="{DT_SKIN}/js/sell-show-bot.js"></script>  
       <div class="mod-detail-othsupplyinfo">
           <div class="de-blockhd"><h2>供应商的其他相关信息</h2><a href="{userurl($username, 'file=sell')}" target="_self" class="de-more dmtrack">查看该供应商更多供应产品</a></div>
    <div class="de-blockbd clr">
		<div class="suggest-offers">
			<a id="scrollArrLeft4"  class="sug-btn sug-pre dmtrack" target="_self" href="javascript:;"><span>上一组</span></a>
			<a id="scrollArrRight4" class="sug-btn sug-next dmtrack" target="_self" href="javascript:;"><span>下一组</span></a>
			<div class="suggest-offers-wrap" id="scrollCont4">
            <ul>
				<!--{php $tags=tag("moduleid=$moduleid&length=20&condition=status=3 and thumb<>'' and username='$username'&pagesize=16&order=edittime&template=null");}-->
                      {loop $tags $i $t}
         <li><div class="iphoto"><a href="{$t[linkurl]}"><img src="{$t[thumb]}"></a></div><h4><a href="{$t[linkurl]}">{$t[title]}</a></h4><p><em>{if $t[unit] && $t[price]>0}￥ {$t[price]} {else} 面议 {/if}</em><br></p></li>
                      {/loop}
            </ul>
            </div>
		</div>
    </div>
</div>
       <div id="mod-detail-crumbsets" class="mod-detail-crumbsets">
        <h2>您可以通过以下类目找到类似信息：</h2>
		<div class="de-spaceholder">分隔线</div>
		            <ul class="de-crumbs clr">
				                    <li><a dmt="crumb" class="dmtrack" href="{DT_PATH}">首页</a></li>
				                    <li class="de-st">&gt;</li>
				                    <li><a dmt="crumb" class="dmtrack" href="{$MOD[linkurl]}">{$MOD[name]}</a></li>
				                    <li class="de-st">&gt;</li>
				                    <li class="de-st">{cat_pos($catid, ' &gt; ')}</li>
		            </ul>
		    </div>
        		<div id="mod-detail-exemption" class="mod-detail-exemption">
        			<p class="de-speaker">免责声明：以上所展示的信息由会员自行提供，内容的真实性、准确性和合法性由发布会员负责。{$DT[sitename]}对此不承担任何责任。</p>
        			<p>友情提醒：为规避购买风险，建议您在购买相关产品前务必确认供应商资质及产品质量！</p>
                </div>
		</div>
    </div>		
</div>
                    </div> 
		<div class="clr"></div> 
		    <div id="mod-detail-botsearch" class="mod-detail-botsearch clr">
        <div class="search-container">
				{if $MODULE[$moduleid][ismenu] && !$MODULE[$moduleid][islink]}
				{php $searchid = $moduleid;}
				{else}
				{php $searchid = 6;}
				{/if}
				<script type="text/javascript">var searchid = {$searchid};</script>
            <form id="destoon_search" action="{DT_PATH}search.php" class="nav_act_form" onsubmit="return Dsearch();">
            <input type="hidden" name="moduleid" value="{$searchid}" id="destoon_moduleid"/>
                <div class="search-typeinfo">
                    <div class="search-displaytype">
                         <input type="text" id="destoon_select" value="{$MODULE[$searchid][name]}" readonly onfocus="this.blur();" onclick="Ds('search_module');"/>
                    </div>
				<ul id="search_module" class="search-typelist" style="display:none;" onmouseout="Dh('search_module');" onmouseover="Ds('search_module');">
				<li><a href="javascript:void(0);" onclick="setModule('供应','5')">供应</a></li>
                <li><a href="javascript:void(0);" onclick="setModule('求购','6')">求购</a></li>
                <li><a href="javascript:void(0);" onclick="setModule('行情','7')">行情</a></li>
                <li><a href="javascript:void(0);" onclick="setModule('公司','4')">公司</a></li>
                <li><a href="javascript:void(0);" onclick="setModule('资讯','21')">资讯</a></li>
				</ul>
                </div>
                <div class="search-keywordwrap">
				<input name="kw" id="destoon_kw" type="text" class="search-keyword" value="{if $kw}{$kw}{else}请输入关键字{/if}" onfocus="if(this.value=='请输入关键字') this.value='';"{if $DT[search_tips]} onkeyup="STip(this.value);" autocomplete="off"{/if}/>
                </div>
    			<input type="image" dmt="bottomsearch" class="search-submit dmtrack" src="{DT_SKIN}images/sell/bg0.png">
				<a id="destoon_search_m" style="display:none"></a>
            </form>
        </div>
            <div class="de-relatedsearch clr">
                <h3>相关搜索：</h3>
                      <ul>
                     <!--{tag("moduleid=6&table=keyword&condition=moduleid=$searchid and status=3&pagesize=14&order=total_search desc&template=list-search_kwshow")}-->
                      </ul>
            </div>
            </div>
        <br /> 
    </div>
<script type="text/javascript" language="jscript">
function tab(o, s, cb, ev){//tab切换类
var $ = function(o){return document.getElementById(o)};
var css = o.split((s||'_'));
if(css.length!=4)return;
this.event = ev || 'onclick';
o = $(o);
if(o){
   this.ITEM = [];
   o.id = css[0];
   var item = o.getElementsByTagName(css[1]);
   var j=1;
   for(var i=0;i<item.length;i++){
    if(item[i].className.indexOf(css[2])>=0 || item[i].className.indexOf(css[3])>=0){
     if(item[i].className == css[2])o['cur'] = item[i];
     item[i].callBack = cb||function(){};
     item[i]['css'] = css;
     item[i]['link'] = o;
     this.ITEM[j] = item[i];
     item[i]['Index'] = j++;
     item[i][this.event] = this.ACTIVE;
    }
   }
   return o;
}
}
tab.prototype = {
ACTIVE:function(){
   var $ = function(o){return document.getElementById(o)};
   this['link']['cur'].className = this['css'][3];
   this.className = this['css'][2];
   try{
    $(this['link']['id']+'_'+this['link']['cur']['Index']).style.display = 'none';
    $(this['link']['id']+'_'+this['Index']).style.display = 'block';
   }catch(e){}
   this.callBack.call(this);
   this['link']['cur'] = this;
}
}
/*
tab 使用方法:
   new tab(标签ID, id分隔符, 单击事触发函数, 什么事件触发TAB切换);
    标签ID:        ID命名格式为: 前缀+分隔符+TAB标签的HTML标签名+激活状态下标签样式+分隔符+非激活状态下标签样式(必须)
    id分隔符:       分隔符(必须)
    TAB切换时触发函数: TAB切换时触发函数(可选)
    什么事件触发TAB切换:可选(默认为onclick)
    注: 标签ID命名时的前缀将做为 该标签的新ID值,所以前缀不要与现在任何元素的ID值相同.
   返回值为: 标签ID所对象的对象.
   切换标签时对应的 项目名称命名规则:
    前缀+_+顺序值
    具体理解,可以看上面的代码,比如
    ID为 "test3_li_now_" 的对象代表的意思是:
     前缀为 test3
     li 为 id为 "test3_li_now_" 标签下面的 li 标签 做为TAB项.
     now 为 标签激活时的样式
     "" 最后的空为 非激活状态下的样式
    每个标签项 激活 状态下对应的元素的ID应该命名为:
     test3_1   第一个标签项对应项目
     test3_2   第二个标签项对应项目
     test3_3   第三个标签项对应项目
     等等
*/
new tab('tabCot_product-li-currentBtn-', '-');
</script>
<script language="javascript" type="text/javascript">
<!--//--><![CDATA[//><!--				
var scrollPic_04 = new ScrollPic();
scrollPic_04.scrollContId   = "scrollCont4"; //内容容器ID
scrollPic_04.arrLeftId      = "scrollArrLeft4";//左箭头ID
scrollPic_04.arrRightId     = "scrollArrRight4"; //右箭头ID
scrollPic_04.frameWidth     = 670;//显示框宽度
scrollPic_04.pageWidth      = 134; //翻页宽度
scrollPic_04.speed          = 10; //移动速度(单位毫秒，越小越快)
scrollPic_04.space          = 10; //每次移动像素(单位px，越大越快)
scrollPic_04.autoPlay       = true; //自动播放
scrollPic_04.autoPlayTime   = 5; //自动播放间隔时间(秒)
scrollPic_04.initialize(); //初始化
//--><!]]>
</script>
{template 'zoom', 'chip'}
{template 'footer'}